{% extends 'master.jinja2' %}
{% block breadcurmb %}
<div class="container">
    <nav>
       <ol class="breadcrumb">
            <li><a href="{{request.route_url('home')}}">首页</a></li>
            <li><a href="{{request.route_url('category',id=category.id)}}">分类列表</a></li>
            <li class="active">{{category.name}}</li>
        </ol>
    </nav>
</div>
{% endblock %}
{% block main %}
<div class="container">
    <div class="row">
        <!--right-->
        <div class="col-md-12 col-sm-12 col-lg-12">
           <div class="panel panel-info">
                <div class="panel-heading">{{title}}</div>
                <div class="panel-body">
                   <input type="hidden" value="{{category.id}}" id="catid" name="catid" form="deform">
                    <!--<form class="form-horizontal">-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-3 control-label text-muted">售价：</label>-->
                            <!--<div class="col-sm-9">-->
                                <!--<label class="text-muted control-label"><input type="number" class="form-control" name="price"></label>-->
                            <!--</div>-->
                        <!--</div>-->
                        <!--<div class="form-group">-->
                            <!--<label class="col-sm-3 control-label text-muted">商品名称：</label>-->
                            <!--<div class="col-sm-9">-->
                                <!--<label class="text-muted control-label"><input type="text" class="form-control" name="name"></label>-->
                            <!--</div>-->
                        <!--</div>-->
                         <!--<div class="form-group">-->
                            <!--<label class="col-sm-3 control-label text-muted">商品介绍：</label>-->
                            <!--<div class="col-sm-9">-->
                                <!--<label class="text-muted control-label"><textarea class="form-control" name="description" rows="5"></textarea></label>-->
                            <!--</div>-->
                        <!--</div>-->
                         <!--<div class="form-group">-->
                            <!--<div class="col-sm-offset-3 col-sm-2">-->
                                    <!--<button type="sumbit" class="btn btn-primary go_buy" name="sumbit">提交</button>-->
                            <!--</div>-->
                         <!--</div>-->
                    <!--</form>-->
               {{ form |safe }}

                <div class="clear-fix"></div>
                </div>
           </div>
        </div>
        <!--right-->
    </div>
</div>
{% endblock %}